package cn.lzx.industry.factory;

import cn.lzx.Bootstrap;
import cn.lzx.industry.material.Project;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.stereotype.Component;

/**
 * Created by lizhenxing on 2018/2/2.
 */
@Component
public class ProjectFactory {

    public Project developProject(Project project) {
        return project;
    }

    public static void main(String[] args) throws Exception {
        ConfigurableApplicationContext context = Bootstrap.start();
        ProjectFactory factory = context.getBean(ProjectFactory.class);
        Project project = new Project();
        project.setName("商家生态系统");
        System.out.println(factory.developProject(project));
    }
}

